package com.lagou.concurrent.demo;

public class Main {
    public static void main(String[] args) {
        Table table = new Table(3);
        new CookerThread("厨师-1", table, 12345L).start();
        new CookerThread("厨师-2", table, 23456L).start();
        new CookerThread("厨师-3", table, 34567L).start();

        new EaterThread("饭桶-1", table, 45678L).start();
        new EaterThread("饭桶-2", table, 56789L).start();
        new EaterThread("饭桶-3", table, 67890L).start();
    }
}
